﻿@page "/Login"
@layout LoginLayout
@inject AjaxService AjaxService
@inject SwalService SwalService
@inject AuthenticationStateProvider AuthenticationStateProvider
@inject NavigationManager NavigationManager
@attribute [AllowAnonymous]
<div class="login-item login-item-floating">
    <div class="text-center">
        <h4 class="text-dark">ZDL Blazor报表查询系统</h4>
        <h4 class="text-dark">用户登录</h4>
    </div>
    <ValidateForm Model="@LoginVo" OnValidSubmit="OnValidSubmit">
        <FloatingLabel DisplayText="用户名" @bind-Value="@LoginVo.UserName" IsGroupBox="true" PlaceHolder="请输入用户名" />
        <FloatingLabel DisplayText="密码" @bind-Value="@LoginVo.Password" type="password" IsGroupBox="true" PlaceHolder="请输入密码" />
        <Checkbox @bind-Value="@LoginVo.RememberMe" ShowLabel="false" ShowAfterLabel="true" DisplayText="记住登录状态" />
        <Button Text="登录" Color="Color.Primary" ButtonType="ButtonType.Submit"></Button>
    </ValidateForm>
</div>


